<template>
  <div class="employee-ranking">
    <div class="top-three">

    </div>
    <div class="list">
      <div class="item" v-for="i in 10">
        <div class="info">
          <span class="num">{{i+1}}</span>
          <img src="@/assets/images/wallet/avatar.png" alt="">
          <div class="user">
            <div>
              <div class="name">姓名{{i+1}}</div>
              <div class="label">店长</div>
            </div>
            <div>
              <div class="number">4844</div>
              <div class="label">人气值</div>
            </div>
          </div>
        </div>
        <Button type="primary" @click="toHome()">主页<i class="iconfont icon-arrow"/></Button>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "employeeRanking",
  data() {
    return {}
  },
  computed: {},
  methods: {
    toHome() {
      this.$router.push("/like/home");
    }
  },
  created() {
  },
  watch: {}
}
</script>

<style scoped lang="scss">
.employee-ranking {
  .top-three {

  }
  .list {
    background: #fff;
    border-radius: 8px;
    padding: 0 16px;
    .item {
      @include flex_between();
      padding: 20px 0;
      border-bottom: 1px solid $-border-color;
      .info {
        @include flex_center();
        flex: 1;
        .num {
          font-size: 18px;
          font-weight: bold;
          width: 20px;
          text-align: center;
        }
        img {
          width: 40px;
          height: 40px;
          border-radius: 100%;
          margin: 0 16px;
        }
        .user {
          display: flex;
          align-items: stretch;
          flex: 1;
          position: relative;
          padding-left: 16px;
          &:before {
            content: "";
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 0;
            width: 1px;
            height: 20px;
            background: #D9D9D9;
          }
          > div {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex: 1;
          }
          .name {
            font-size: 14px;
            font-weight: bold;
          }
          .number {
            line-height: 20px;
            font-size: 16px;
            font-family: changchun1hao;
          }
          .label {
            color: $-color-muted;
            font-size: 12px;
          }
        }
      }
      button {
        padding: 0 12px;
        i {
          vertical-align: -1px;
        }
      }
    }
  }
}
</style>
